import pygame
import math


class Room:
    def __init__(self, layout, contain_m_attack, l_bullet, buffs, trap, enemy, e_bullet, b_img, enemy_number,graph):
        # map layout and property
        self.back_image = b_img
        self.matrix = layout
        self.laura_attack = contain_m_attack
        self.laura_bullets = l_bullet
        self.steady_buff = buffs
        self.traps = trap
        self.enemies = enemy
        self.guard_bullet = e_bullet
        self.enemy_number = enemy_number
        self.graph = graph

    def state(self, x, y):
        return self.matrix[math.ceil(x)][math.ceil(y)]
